--[[------------------------------------
			APEX FRAMEWORK
	Developed by Ren, from zDark.com
------------------------------------]]--

APEX = {}

function APEX.Include ( fname )
	include(fname);
end

function APEX.SendFile ( fname )
	AddCSLuaFile(fname);
end
	
function APEX.SvPlugin ( fname )
	include('lib/'..fname..'/init.lua');
	include('lib/'..fname..'/shared.lua');
	AddCSLuaFile('lib/'..fname..'/cl_init.lua');
	AddCSLuaFile('lib/'..fname..'/shared.lua');
end

function APEX.ClPlugin ( fname )
	include('lib/'..fname..'/cl_init.lua');
	include('lib/'..fname..'/shared.lua');
end

function APEX.TeamSetup ( id, name, r, g, b, a)
	team.SetUp(id, name, Color( r, g, b, a ));
end

function APEX.GameType ( name )
	DeriveGamemode( name );
end